package com.csair.platform.cit.service.entity;
import com.csair.platform.cit.service.annotation.Jpath;
import com.csair.platform.cit.service.annotation.JpathPrefix;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
/**
 *被投资外国企业信息--持有外国企业10%以上股份或有表决权股份的其他股东情况
 * @author zhengxincheng
 */
@Entity
@Table ( name ="cit_wgqy_grid_fb1" )
@Data
@JpathPrefix(prefix = "kz_.temp.cgwgqyxxbgbVO",suffix = "gdxxGrid.gdxxGridlb")
public class CitWgqyGridFb1 implements Serializable {

	private static final long serialVersionUID =  3582244933519855139L;

	@GeneratedValue(strategy= GenerationType.IDENTITY)
	@Id
	private Long id;

   	@Column(name = "nsrsbh" )
	private String nsrsbh;

   	@Column(name = "nsrmc" )
	private String nsrmc;

   	@Column(name = "skssqq" )
	private String skssqq;

   	@Column(name = "skssqz" )
	private String skssqz;

	/**
	 * 持股股东名称（中文）
	 */
	@Jpath(sort = 1)
   	@Column(name = "cggdzwmc" )
	private String cggdzwmc;

	/**
	 * 持股股东名称（外文）
	 */
	@Jpath(sort = 2)
	@Column(name = "cggdwwmc" )
	private String cggdwwmc;

	/**
	 * 居住地或成立地（中文）
	 */
	@Jpath(sort = 3)
	@Column(name = "jzdhcldzw" )
	private String jzdhcldzw;

	/**
	 * 居住地或成立地（外文）
	 */
	@Jpath(sort = 4)
	@Column(name = "jzdhcldww" )
	private String jzdhcldww;

	/**
	 * 持股类型
	 */
	@Jpath(sort = 5)
	@Column(name = "cglx" )
	private String cglx;

	/**
	 * 持股比例
	 */
	@Jpath(sort = 6)
   	@Column(name = "cgbl" )
	private String cgbl;

	/**
	 * 达到10%以上权益份额的起始日期	
	 */
	@Jpath(sort = 7)
	@Column(name = "qyfeqsrq" )
	private String qyfeqsrq;
	/**
	 * 父id
	 */
	@Column(name = "parent_id" )
	private Long parentId;

	@Jpath(sort = 8)
	private Integer mxxh;

	public String getCgbl() {
		if(StringUtils.isNotEmpty(cgbl)){
			cgbl = cgbl.replaceAll(",","");
		}
		return cgbl;
	}
}
